﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Useful.MVP2
{
    public class InitListViewEventArgs : EventArgs
    {
        public bool AllowView { get; set; }
        public bool AllowAdd { get; set; }
        public bool AllowEdit { get; set; }
        public bool AllowDelete { get; set; }

        public object Repository { get; set; } // TODO

        public InitListViewEventArgs(object repository, bool allowView, bool allowAdd, bool allowEdit, bool allowDelete) 
        {
            this.Repository = repository;

            this.AllowView = allowView;
            this.AllowEdit = allowEdit;
            this.AllowAdd = allowAdd;
            this.AllowDelete = allowDelete;
        }
    }
}
